// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		const wfKey = [
			'srftaskid',
			'srftaskdefinitionkey',
			'srfprocessdefinitionkey',
			'srfprocessdefinitionid',
			'srfprocessinstanceid',
		];
		//  表格自持属性
		this.$ownKeys = [
			'sys_member',
			'display_name',
			'organization_name',
			'organization_number',
			'department_name',
			'department_number',
			'organizational_role_name',
			'sort',
			'person_id',
			'srfkey',
			'srfdataaccaction',
			'organizational_role_id',
			'srfmajortext',
			...wfKey,
		];
	}

	get display_name() {
		return this.$DO.display_name;
	}

	set display_name(value: any) {
		this.$DO.display_name = value;
	}
	get organization_name() {
		return this.$DO.organization_name;
	}

	set organization_name(value: any) {
		this.$DO.organization_name = value;
	}
	get organization_number() {
		return this.$DO.organization_number;
	}

	set organization_number(value: any) {
		this.$DO.organization_number = value;
	}
	get department_name() {
		return this.$DO.department_name;
	}

	set department_name(value: any) {
		this.$DO.department_name = value;
	}
	get department_number() {
		return this.$DO.department_number;
	}

	set department_number(value: any) {
		this.$DO.department_number = value;
	}
	get organizational_role_name() {
		return this.$DO.organizational_role_name;
	}

	set organizational_role_name(value: any) {
		this.$DO.organizational_role_name = value;
	}
	get sort() {
		return this.$DO.sort;
	}

	set sort(value: any) {
		this.$DO.sort = value;
	}
	get person_id() {
		return this.$DO.person_id;
	}

	set person_id(value: any) {
		this.$DO.person_id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}

	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfdataaccaction() {
		return this.$DO.id;
	}

	set srfdataaccaction(value: any) {
		this.$DO.id = value;
	}
	get organizational_role_id() {
		return this.$DO.organizational_role_id;
	}

	set organizational_role_id(value: any) {
		this.$DO.organizational_role_id = value;
	}
	get srfmajortext() {
		return this.$DO.id;
	}

	set srfmajortext(value: any) {
		this.$DO.id = value;
	}

	set sys_member(value: any) {
		this.$DO.id = value;
	}
	get sys_member() {
		return this.$DO.id;
	}

	get srftaskid() {
		return this.$DO.srftaskid;
	}

	get srftaskdefinitionkey() {
		return this.$DO.srftaskdefinitionkey;
	}

	get srfprocessdefinitionkey() {
		return this.$DO.srfprocessdefinitionkey;
	}

	get srfprocessdefinitionid() {
		return this.$DO.srfprocessdefinitionid;
	}

	get srfprocessinstanceid() {
		return this.$DO.srfprocessinstanceid;
	}
}

export const GridControlVO = [
	{ name: 'GridControlVO', controlVO: GridDataControlVO },
];
